import 'package:json_annotation/json_annotation.dart';

import 'bt_config_item.dart';

part 'bt_app_config.g.dart';

@JsonSerializable()
class BtAppConfig {
  final String? ver;

  final List<BtConfigItem>? items;

  const BtAppConfig({
    required this.ver,
    required this.items,
  });

  factory BtAppConfig.fromJson(Map<String, dynamic> json) => _$BtAppConfigFromJson(json);

  Map<String, dynamic> toJson() => _$BtAppConfigToJson(this);
}
